package com.sophossystems.client.asmon.hibernate;

import java.io.Serializable;

import com.sophossystems.client.asmon.dto.ActivityDTO;

public class Activity implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 
	 * This attribute maps to the column idActivity in the Activity table.
	 */
	protected int idActivity;

	/** 
	 * This attribute maps to the column Description in the Activity table.
	 */
	protected String description;

	/** 
	 * This attribute maps to the column idModule in the Activity table.
	 */
	protected int idModule;

	/** 
	 * This attribute represents whether the primitive attribute idModule is null.
	 */
	protected boolean idModuleNull = true;

	/**
	 * Method 'Activity'
	 * 
	 */
	public Activity()
	{
	}

	/**
	 * Method 'getIdActivity'
	 * 
	 * @return int
	 */
	public int getIdActivity()
	{
		return idActivity;
	}

	/**
	 * Method 'setIdActivity'
	 * 
	 * @param idActivity
	 */
	public void setIdActivity(int idActivity)
	{
		this.idActivity = idActivity;
	}

	/**
	 * Method 'getDescription'
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getDescription()
	{
		return description;
	}

	/**
	 * Method 'setDescription'
	 * 
	 * @param description
	 */
	public void setDescription(java.lang.String description)
	{
		this.description = description;
	}

	/**
	 * Method 'getIdModule'
	 * 
	 * @return int
	 */
	public int getIdModule()
	{
		return idModule;
	}

	/**
	 * Method 'setIdModule'
	 * 
	 * @param idModule
	 */
	public void setIdModule(int idModule)
	{
		this.idModule = idModule;
		this.idModuleNull = false;
	}

	/** 
	 * Sets the value of idModuleNull
	 */
	public void setIdModuleNull(boolean idModuleNull)
	{
		this.idModuleNull = idModuleNull;
	}

	/** 
	 * Gets the value of idModuleNull
	 */
	public boolean isIdModuleNull()
	{
		return idModuleNull;
	}

	public void mapper(ActivityDTO activity){
		
		this.idActivity = activity.getIdActivity();
		this.description = activity.getDescription();
		this.idModule = activity.getIdModule();
		
	}
}
